answer "You don't really want to do that." with "OK"
exit domenu
end if
if what="Print Report..." OR what="Print Stack..." then
answer "There's nothing to print." with "OK"
exit domenu
end if
if what="New Stack..." then
answer "New stacks cannot be created from here." with "OK"
exit domenu
end if
if what="Find..." then
answer "There's nothing to find." with "OK"
exit domenu
end if
if what="Message" then
hide message box
answer "Message Box is unavailable in Yahtzee." with "OK"
exit domenu
end if
if what="Home" or what="Quit Hypercard" or what="help" or what="Back" or what="Recent" or what="Compact Stack" or what="Page Setup..." or what="Protect Stack..." or what="Print Card" OR what="Open Stack..." then pass domenu
else answer "Menu option not available in Yahtzee!"
end domenu
on closestack
global temppower, tempblind
put temppower into powerkeys
put tempblind into blindtyping
end closestack
on startUp
getHomeInfo
openstack
end startUp
on resume
getHomeInfo
openstack
end resume
on getHomeInfo
global stacks,applications,documents,userName
set lockScreen to true
set lockMessages to true
push this card
go to card "User Preferences" of stack "Home"
put card field "User Name" into userName
set userLevel to card field "User Level"
set powerKeys to the hilite of button "Power Keys"
set blindTyping to the hilite of button "Blind Typing"
put field "paths" of card "stacks" into stacks
put field "paths" of card "applications" into applications
put field "paths" of card "documents" into documents